package com.jiaying.sync;

import com.jiaying.sync.utils.SnowflakeIdWorkerOptimize;

/**
 * 雪花ID生成器测试类
 */
public class TestSnowflakeId {
    public static void main(String[] args) {
        SnowflakeIdWorkerOptimize idWorker = new SnowflakeIdWorkerOptimize(0, 0);
        
        System.out.println("测试雪花ID生成器:");
        for (int i = 0; i < 10; i++) {
            long id = idWorker.nextId();
            System.out.println("生成的ID: " + id);
        }
        
        System.out.println("\n测试完成");
    }
}